package com.zmn.mcc.model.dto.dpermit;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 简单数据权限对象
 * @author heguanghua
 * @since 2020/05/18 15:48
 */
@Getter(value = AccessLevel.PUBLIC)
@Setter(value = AccessLevel.PUBLIC)
public class DpermitSimpleDO implements Serializable {
    private static final long serialVersionUID = -3441715369531650536L;

    private int dataId;
    private String dataName;
    private int parentId;
    private Integer level;
    private Integer status;
    private boolean checked = false;    // 默认false
    private boolean subAll = false;     // 默认false

    private List<DpermitSimpleDO> subors = new ArrayList<>();
    private int lowerSubCount = 0;      // 最后层级对象的子集数，通常通过外部赋值
}
